<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<html class=" js flexbox flexboxlegacy canvas canvastext webgl no-touch geolocation postmessage websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg smil svgclippaths">
<head>
    <meta charset="utf-8">
    <title>我的工作台</title>
    <%@include file="/WEB-INF/pages/common/taglib.jsp" %>
    <%@include file="/WEB-INF/pages/common/common.jsp" %>
    <script type="text/javascript" src="${basePath}/plugins/echarts/build/dist/echarts.js"></script>
    <script>

        $(function () {
            refresh();
        });

        var _id;
        function refresh() {
            totalIEOrder();
            refreshChartB();
            refreshChartC();
            refreshChartD();
            refreshChartE();

            _id = window.setTimeout("refresh();", $('input[name="refreshTime"]').val() * 1000);
        }

        function setRefreshTimes() {
            if (_id) {
                window.clearTimeout(_id)
            }
            refresh();
        }

        function totalIEOrder() {
            $.post("${basePath}/reportStat/totalIEOrder", {}, function (_result) {
                var _import = _result['import'];
                var _export = _result['export'];
                var _importLineDatas = [];
                for (var item in _import) {
                    var _country = _import[item]["COUNTRY"];
                    var _value = _import[item]["TOTAL"];
                    var _data = [{
                        name: _country,
                        "importUrl": "${basePath}/reportStat/showImport?from=" + _country
                    }, {name: '青岛', value: _value}];

                    _importLineDatas.push(_data);
                }

                var _exportLineDatas = [];
                for (var item in _export) {
                    var _country = _export[item]["COUNTRY"];
                    var _value = _export[item]["TOTAL"];
                    var _data = [{
                        name: '青岛',
                        "exportUrl": "${basePath}/reportStat/showExport?to=" + _country
                    }, {name: _country, value: _value}];

                    _exportLineDatas.push(_data);
                }

                _map(_importLineDatas, _exportLineDatas);
            });
        }

        function _map(_importLineDatas, _exportLineDatas) {
            require.config({
                paths: {
                    echarts: '${basePath}/plugins/echarts/build/dist'
                }
            });

            require(
                    [
                        'echarts',
                        'echarts/chart/map'
                    ],
                    function (echarts) {
                        var myChart = echarts.init(document.getElementById('totalImportExport'));
                        var option = {
                            //backgroundColor: '#1b1b1b',

                            title: {
                                text: '跨境电商进/出口实时数据',
                                subtext: '',
                                x: 'center',
                                textStyle: {
                                    //color: '#fff'
                                }
                            },
                            tooltip: {
                                trigger: 'item',
                                formatter: function (params, ticket, callback) {
                                    //标线显示
                                    if (params.data.importUrl) {
                                        return params[1].replace('>', '->') + "&nbsp;共" + params[2] + "笔";
                                    }

                                    //标线显示
                                    if (params.data.exportUrl) {
                                        return params[1].replace('>', '->') + "&nbsp;共" + params[2] + "笔";
                                    }

                                    return params[1];
                                }
                                //,showContent:true
                            },

                            series: [
                                {
                                    name: 'import',
                                    type: 'map',
//                                    roam: true,
                                    mapType: 'world',
                                    hoverable: false,
                                    clickable: false,
                                    itemStyle: {
                                        normal: {
                                            borderColor: '#FFFFFF',
                                            borderWidth: 0.1,
                                            areaStyle: {
                                                color: '#d2d6de'
                                            }
                                        },
                                        emphasis: {                 // 也是选中样式
                                            borderWidth: 2,
                                            borderColor: '#fff',
                                            color: '#999999',
                                            label: {
                                                show: true,
                                                textStyle: {
                                                    color: '#fff'
                                                }
                                            }
                                        }
                                    },
                                    data: [],

                                    geoCoord: {
                                        'Afghanistan': [67.709953, 33.93911],
                                        'Angola': [17.873887, -11.202692],
                                        'Albania': [20.168331, 41.153332],
                                        'United Arab Emirates': [53.847818, 23.424076],
                                        'Argentina': [-63.61667199999999, -38.416097],
                                        'Armenia': [45.038189, 40.069099],
                                        'French Southern and Antarctic Lands': [69.348557, -49.280366],
                                        'Australia': [133.775136, -25.274398],
                                        'Austria': [14.550072, 47.516231],
                                        'Azerbaijan': [47.576927, 40.143105],
                                        'Burundi': [29.918886, -3.373056],
                                        'Belgium': [4.469936, 50.503887],
                                        'Benin': [2.315834, 9.30769],
                                        'Burkina Faso': [-1.561593, 12.238333],
                                        'Bangladesh': [90.356331, 23.684994],
                                        'Bulgaria': [25.48583, 42.733883],
                                        'The Bahamas': [-77.39627999999999, 25.03428],
                                        'Bosnia and Herzegovina': [17.679076, 43.915886],
                                        'Belarus': [27.953389, 53.709807],
                                        'Belize': [-88.49765, 17.189877],
                                        'Bermuda': [-64.7505, 32.3078],
                                        'Bolivia': [-63.58865299999999, -16.290154],
                                        'Brazil': [-51.92528, -14.235004],
                                        'Brunei': [114.727669, 4.535277],
                                        'Bhutan': [90.433601, 27.514162],
                                        'Botswana': [24.684866, -22.328474],
                                        'Central African Republic': [20.939444, 6.611110999999999],
                                        'Canada': [-106.346771, 56.130366],
                                        'Switzerland': [8.227511999999999, 46.818188],
                                        'Chile': [-71.542969, -35.675147],
                                        'China': [104.195397, 35.86166],
                                        'Ivory Coast': [-5.547079999999999, 7.539988999999999],
                                        'Cameroon': [12.354722, 7.369721999999999],
                                        'Democratic Republic of the Congo': [21.758664, -4.038333],
                                        'Republic of the Congo': [15.827659, -0.228021],
                                        'Colombia': [-74.297333, 4.570868],
                                        'Costa Rica': [-83.753428, 9.748916999999999],
                                        'Cuba': [-77.781167, 21.521757],
                                        'Northern Cyprus': [33.429859, 35.126413],
                                        'Cyprus': [33.429859, 35.126413],
                                        'Czech Republic': [15.472962, 49.81749199999999],
                                        'Germany': [10.451526, 51.165691],
                                        'Djibouti': [42.590275, 11.825138],
                                        'Denmark': [9.501785, 56.26392],
                                        'Dominican Republic': [-70.162651, 18.735693],
                                        'Algeria': [1.659626, 28.033886],
                                        'Ecuador': [-78.18340599999999, -1.831239],
                                        'Egypt': [30.802498, 26.820553],
                                        'Eritrea': [39.782334, 15.179384],
                                        'Spain': [-3.74922, 40.46366700000001],
                                        'Estonia': [25.013607, 58.595272],
                                        'Ethiopia': [40.489673, 9.145000000000001],
                                        'Finland': [25.748151, 61.92410999999999],
                                        'Fiji': [178.065032, -17.713371],
                                        'Falkland Islands': [-59.523613, -51.796253],
                                        'France': [2.213749, 46.227638],
                                        'Gabon': [11.609444, -0.803689],
                                        'United Kingdom': [-3.435973, 55.378051],
                                        'Georgia': [-82.9000751, 32.1656221],
                                        'Ghana': [-1.023194, 7.946527],
                                        'Guinea': [-9.696645, 9.945587],
                                        'Gambia': [-15.310139, 13.443182],
                                        'Guinea Bissau': [-15.180413, 11.803749],
                                        'Equatorial Guinea': [10.267895, 1.650801],
                                        'Greece': [21.824312, 39.074208],
                                        'Greenland': [-42.604303, 71.706936],
                                        'Guatemala': [-90.23075899999999, 15.783471],
                                        'French Guiana': [-53.125782, 3.933889],
                                        'Guyana': [-58.93018, 4.860416],
                                        'Honduras': [-86.241905, 15.199999],
                                        'Croatia': [15.2, 45.1],
                                        'Haiti': [-72.285215, 18.971187],
                                        'Hungary': [19.503304, 47.162494],
                                        'Indonesia': [113.921327, -0.789275],
                                        'India': [78.96288, 20.593684],
                                        'Ireland': [-8.24389, 53.41291],
                                        'Iran': [53.688046, 32.427908],
                                        'Iraq': [43.679291, 33.223191],
                                        'Iceland': [-19.020835, 64.963051],
                                        'Israel': [34.851612, 31.046051],
                                        'Italy': [12.56738, 41.87194],
                                        'Jamaica': [-77.297508, 18.109581],
                                        'Jordan': [36.238414, 30.585164],
                                        'Japan': [138.252924, 36.204824],
                                        'Kazakhstan': [66.923684, 48.019573],
                                        'Kenya': [37.906193, -0.023559],
                                        'Kyrgyzstan': [74.766098, 41.20438],
                                        'Cambodia': [104.990963, 12.565679],
                                        'South Korea': [127.766922, 35.907757],
                                        'Kosovo': [20.902977, 42.6026359],
                                        'Kuwait': [47.481766, 29.31166],
                                        'Laos': [102.495496, 19.85627],
                                        'Lebanon': [35.862285, 33.854721],
                                        'Liberia': [-9.429499000000002, 6.428055],
                                        'Libya': [17.228331, 26.3351],
                                        'Sri Lanka': [80.77179699999999, 7.873053999999999],
                                        'Lesotho': [28.233608, -29.609988],
                                        'Lithuania': [23.881275, 55.169438],
                                        'Luxembourg': [6.129582999999999, 49.815273],
                                        'Latvia': [24.603189, 56.879635],
                                        'Morocco': [-7.092619999999999, 31.791702],
                                        'Moldova': [28.369885, 47.411631],
                                        'Madagascar': [46.869107, -18.766947],
                                        'Panama': [-102.552784, 23.634501],
                                        'Macedonia': [21.745275, 41.608635],
                                        'Mali': [-3.996166, 17.570692],
                                        'Myanmar': [95.956223, 21.913965],
                                        'Montenegro': [19.37439, 42.708678],
                                        'Mongolia': [103.846656, 46.862496],
                                        'Mozambique': [35.529562, -18.665695],
                                        'Mauritania': [-10.940835, 21.00789],
                                        'Malawi': [34.301525, -13.254308],
                                        'Malaysia': [101.975766, 4.210484],
                                        'Namibia': [18.49041, -22.95764],
                                        'New Caledonia': [165.618042, -20.904305],
                                        'Niger': [8.081666, 17.607789],
                                        'Nigeria': [8.675277, 9.081999],
                                        'Nicaragua': [-85.207229, 12.865416],
                                        'Netherlands': [5.291265999999999, 52.132633],
                                        'Norway': [8.468945999999999, 60.47202399999999],
                                        'Nepal': [84.12400799999999, 28.394857],
                                        'New Zealand': [174.885971, -40.900557],
                                        'Oman': [55.923255, 21.512583],
                                        'Pakistan': [69.34511599999999, 30.375321],
                                        'Panama': [-80.782127, 8.537981],
                                        'Peru': [-75.015152, -9.189967],
                                        'Philippines': [121.774017, 12.879721],
                                        'Papua New Guinea': [143.95555, -6.314992999999999],
                                        'Poland': [19.145136, 51.919438],
                                        'Puerto Rico': [-66.590149, 18.220833],
                                        'North Korea': [127.510093, 40.339852],
                                        'Portugal': [-8.224454, 39.39987199999999],
                                        'Paraguay': [-58.443832, -23.442503],
                                        'Qatar': [51.183884, 25.354826],
                                        'Romania': [24.96676, 45.943161],
                                        'Russia': [105.318756, 61.52401],
                                        'Rwanda': [29.873888, -1.940278],
                                        'Western Sahara': [-12.885834, 24.215527],
                                        'Saudi Arabia': [45.079162, 23.885942],
                                        'Sudan': [30.217636, 12.862807],
                                        'South Sudan': [31.3069788, 6.876991899999999],
                                        'Senegal': [-14.452362, 14.497401],
                                        'Solomon Islands': [160.156194, -9.64571],
                                        'Sierra Leone': [-11.779889, 8.460555],
                                        'El Salvador': [-88.89653, 13.794185],
                                        'Somaliland': [46.8252838, 9.411743399999999],
                                        'Somalia': [46.199616, 5.152149],
                                        'Republic of Serbia': [21.005859, 44.016521],
                                        'Suriname': [-56.027783, 3.919305],
                                        'Slovakia': [19.699024, 48.669026],
                                        'Slovenia': [14.995463, 46.151241],
                                        'Sweden': [18.643501, 60.12816100000001],
                                        'Swaziland': [31.465866, -26.522503],
                                        'Syria': [38.996815, 34.80207499999999],
                                        'Chad': [18.732207, 15.454166],
                                        'Togo': [0.824782, 8.619543],
                                        'Thailand': [100.992541, 15.870032],
                                        'Tajikistan': [71.276093, 38.861034],
                                        'Turkmenistan': [59.556278, 38.969719],
                                        'East Timor': [125.727539, -8.874217],
                                        'Trinidad and Tobago': [-61.222503, 10.691803],
                                        'Tunisia': [9.537499, 33.886917],
                                        'Turkey': [35.243322, 38.963745],
                                        'United Republic of Tanzania': [34.888822, -6.369028],
                                        'Uganda': [32.290275, 1.373333],
                                        'Ukraine': [31.16558, 48.379433],
                                        'Uruguay': [-55.765835, -32.522779],
                                        'United States of America': [-95.712891, 37.09024],
                                        'Uzbekistan': [64.585262, 41.377491],
                                        'Venezuela': [-66.58973, 6.42375],
                                        'Vietnam': [108.277199, 14.058324],
                                        'Vanuatu': [166.959158, -15.376706],
                                        'West Bank': [35.3027226, 31.9465703],
                                        'Yemen': [48.516388, 15.552727],
                                        'South Africa': [22.937506, -30.559482],
                                        'Zambia': [27.849332, -13.133897],
                                        'Zimbabwe': [29.154857, -19.015438],
                                        '阿富汗': [67.709953, 33.93911],
                                        '安哥拉': [17.873887, -11.202692],
                                        '阿尔巴尼亚': [20.168331, 41.153332],
                                        '阿联酋': [53.847818, 23.424076],
                                        '阿根廷': [-63.61667199999999, -38.416097],
                                        '亚美尼亚': [45.038189, 40.069099],
                                        '法属南半球和南极领地': [69.348557, -49.280366],
                                        '澳大利亚': [133.775136, -25.274398],
                                        '奥地利': [14.550072, 47.516231],
                                        '阿塞拜疆': [47.576927, 40.143105],
                                        '布隆迪': [29.918886, -3.373056],
                                        '比利时': [4.469936, 50.503887],
                                        '贝宁': [2.315834, 9.30769],
                                        '布基纳法索': [-1.561593, 12.238333],
                                        '孟加拉国': [90.356331, 23.684994],
                                        '保加利亚': [25.48583, 42.733883],
                                        '巴哈马': [-77.39627999999999, 25.03428],
                                        '波斯尼亚和黑塞哥维那': [17.679076, 43.915886],
                                        '白俄罗斯': [27.953389, 53.709807],
                                        '伯利兹': [-88.49765, 17.189877],
                                        '百慕大': [-64.7505, 32.3078],
                                        '玻利维亚': [-63.58865299999999, -16.290154],
                                        '巴西': [-51.92528, -14.235004],
                                        '文莱': [114.727669, 4.535277],
                                        '不丹': [90.433601, 27.514162],
                                        '博茨瓦纳': [24.684866, -22.328474],
                                        '中非共和国': [20.939444, 6.611110999999999],
                                        '加拿大': [-106.346771, 56.130366],
                                        '瑞士': [8.227511999999999, 46.818188],
                                        '智利': [-71.542969, -35.675147],
                                        '中国': [104.195397, 35.86166],
                                        '象牙海岸': [-5.547079999999999, 7.539988999999999],
                                        '喀麦隆': [12.354722, 7.369721999999999],
                                        '刚果民主共和国': [21.758664, -4.038333],
                                        '刚果共和国': [15.827659, -0.228021],
                                        '哥伦比亚': [-74.297333, 4.570868],
                                        '哥斯达黎加': [-83.753428, 9.748916999999999],
                                        '古巴': [-77.781167, 21.521757],
                                        '北塞浦路斯': [33.429859, 35.126413],
                                        '塞浦路斯': [33.429859, 35.126413],
                                        '捷克共和国': [15.472962, 49.81749199999999],
                                        '德国': [10.451526, 51.165691],
                                        '吉布提': [42.590275, 11.825138],
                                        '丹麦': [9.501785, 56.26392],
                                        '多明尼加共和国': [-70.162651, 18.735693],
                                        '阿尔及利亚': [1.659626, 28.033886],
                                        '厄瓜多尔': [-78.18340599999999, -1.831239],
                                        '埃及': [30.802498, 26.820553],
                                        '厄立特里亚': [39.782334, 15.179384],
                                        '西班牙': [-3.74922, 40.46366700000001],
                                        '爱沙尼亚': [25.013607, 58.595272],
                                        '埃塞俄比亚': [40.489673, 9.145000000000001],
                                        '芬兰': [25.748151, 61.92410999999999],
                                        '斐': [178.065032, -17.713371],
                                        '福克兰群岛': [-59.523613, -51.796253],
                                        '法国': [2.213749, 46.227638],
                                        '加蓬': [11.609444, -0.803689],
                                        '英国': [-3.435973, 55.378051],
                                        '格鲁吉亚': [-82.9000751, 32.1656221],
                                        '加纳': [-1.023194, 7.946527],
                                        '几内亚': [-9.696645, 9.945587],
                                        '冈比亚': [-15.310139, 13.443182],
                                        '几内亚比绍': [-15.180413, 11.803749],
                                        '赤道几内亚': [10.267895, 1.650801],
                                        '希腊': [21.824312, 39.074208],
                                        '格陵兰': [-42.604303, 71.706936],
                                        '危地马拉': [-90.23075899999999, 15.783471],
                                        '法属圭亚那': [-53.125782, 3.933889],
                                        '圭亚那': [-58.93018, 4.860416],
                                        '洪都拉斯': [-86.241905, 15.199999],
                                        '克罗地亚': [15.2, 45.1],
                                        '海地': [-72.285215, 18.971187],
                                        '匈牙利': [19.503304, 47.162494],
                                        '印度尼西亚': [113.921327, -0.789275],
                                        '印度': [78.96288, 20.593684],
                                        '爱尔兰': [-8.24389, 53.41291],
                                        '伊朗': [53.688046, 32.427908],
                                        '伊拉克': [43.679291, 33.223191],
                                        '冰岛': [-19.020835, 64.963051],
                                        '以色列': [34.851612, 31.046051],
                                        '意大利': [12.56738, 41.87194],
                                        '牙买加': [-77.297508, 18.109581],
                                        '约旦': [36.238414, 30.585164],
                                        '日本': [138.252924, 36.204824],
                                        '哈萨克斯坦': [66.923684, 48.019573],
                                        '肯尼亚': [37.906193, -0.023559],
                                        '吉尔吉斯斯坦': [74.766098, 41.20438],
                                        '柬埔寨': [104.990963, 12.565679],
                                        '韩国': [127.766922, 35.907757],
                                        '科索沃': [20.902977, 42.6026359],
                                        '科威特': [47.481766, 29.31166],
                                        '老挝': [102.495496, 19.85627],
                                        '黎巴嫩': [35.862285, 33.854721],
                                        '利比里亚': [-9.429499000000002, 6.428055],
                                        '利比亚': [17.228331, 26.3351],
                                        '斯里兰卡': [80.77179699999999, 7.873053999999999],
                                        '莱索托': [28.233608, -29.609988],
                                        '立陶宛': [23.881275, 55.169438],
                                        '卢森堡': [6.129582999999999, 49.815273],
                                        '拉脱维亚': [24.603189, 56.879635],
                                        '摩洛哥': [-7.092619999999999, 31.791702],
                                        '摩尔多瓦': [28.369885, 47.411631],
                                        '马达加斯加': [46.869107, -18.766947],
                                        '墨西哥': [-102.552784, 23.634501],
                                        '马其顿': [21.745275, 41.608635],
                                        '马里': [-3.996166, 17.570692],
                                        '缅甸': [95.956223, 21.913965],
                                        '黑山': [19.37439, 42.708678],
                                        '蒙古': [103.846656, 46.862496],
                                        '莫桑比克': [35.529562, -18.665695],
                                        '毛里塔尼亚': [-10.940835, 21.00789],
                                        '马拉维': [34.301525, -13.254308],
                                        '马来西亚': [101.975766, 4.210484],
                                        '纳米比亚': [18.49041, -22.95764],
                                        '新喀里多尼亚': [165.618042, -20.904305],
                                        '尼日尔': [8.081666, 17.607789],
                                        '尼日利亚': [8.675277, 9.081999],
                                        '尼加拉瓜': [-85.207229, 12.865416],
                                        '荷兰': [5.291265999999999, 52.132633],
                                        '挪威': [8.468945999999999, 60.47202399999999],
                                        '尼泊尔': [84.12400799999999, 28.394857],
                                        '新西兰': [174.885971, -40.900557],
                                        '阿曼': [55.923255, 21.512583],
                                        '巴基斯坦': [69.34511599999999, 30.375321],
                                        '巴拿马': [-80.782127, 8.537981],
                                        '秘鲁': [-75.015152, -9.189967],
                                        '菲律宾': [121.774017, 12.879721],
                                        '巴布亚新几内亚': [143.95555, -6.314992999999999],
                                        '波兰': [19.145136, 51.919438],
                                        '波多黎各': [-66.590149, 18.220833],
                                        '北朝鲜': [127.510093, 40.339852],
                                        '葡萄牙': [-8.224454, 39.39987199999999],
                                        '巴拉圭': [-58.443832, -23.442503],
                                        '卡塔尔': [51.183884, 25.354826],
                                        '罗马尼亚': [24.96676, 45.943161],
                                        '俄罗斯': [105.318756, 61.52401],
                                        '卢旺达': [29.873888, -1.940278],
                                        '西撒哈拉': [-12.885834, 24.215527],
                                        '沙特阿拉伯': [45.079162, 23.885942],
                                        '苏丹': [30.217636, 12.862807],
                                        '南苏丹': [31.3069788, 6.876991899999999],
                                        '塞内加尔': [-14.452362, 14.497401],
                                        '所罗门群岛': [160.156194, -9.64571],
                                        '塞拉利昂': [-11.779889, 8.460555],
                                        '萨尔瓦多': [-88.89653, 13.794185],
                                        '索马里兰': [46.8252838, 9.411743399999999],
                                        '索马里': [46.199616, 5.152149],
                                        '塞尔维亚共和国': [21.005859, 44.016521],
                                        '苏里南': [-56.027783, 3.919305],
                                        '斯洛伐克': [19.699024, 48.669026],
                                        '斯洛文尼亚': [14.995463, 46.151241],
                                        '瑞典': [18.643501, 60.12816100000001],
                                        '斯威士兰': [31.465866, -26.522503],
                                        '叙利亚': [38.996815, 34.80207499999999],
                                        '乍得': [18.732207, 15.454166],
                                        '多哥': [0.824782, 8.619543],
                                        '泰国': [100.992541, 15.870032],
                                        '塔吉克斯坦': [71.276093, 38.861034],
                                        '土库曼斯坦': [59.556278, 38.969719],
                                        '东帝汶': [125.727539, -8.874217],
                                        '特里尼达和多巴哥': [-61.222503, 10.691803],
                                        '突尼斯': [9.537499, 33.886917],
                                        '土耳其': [35.243322, 38.963745],
                                        '坦桑尼亚联合共和国': [34.888822, -6.369028],
                                        '乌干达': [32.290275, 1.373333],
                                        '乌克兰': [31.16558, 48.379433],
                                        '乌拉圭': [-55.765835, -32.522779],
                                        '美国': [-95.712891, 37.09024],
                                        '乌兹别克斯坦': [64.585262, 41.377491],
                                        '委内瑞拉': [-66.58973, 6.42375],
                                        '越南': [108.277199, 14.058324],
                                        '瓦努阿图': [166.959158, -15.376706],
                                        '西岸': [35.3027226, 31.9465703],
                                        '也门': [48.516388, 15.552727],
                                        '南非': [22.937506, -30.559482],
                                        '赞比亚': [27.849332, -13.133897],
                                        '津巴布韦': [29.154857, -19.015438],
                                        '青岛': [117.00, 36.40]
                                    },
                                    markLine: {
                                        smooth: true,
                                        effect: {
                                            show: true,
                                            scaleSize: 2,
                                            color: '#68EE68',
                                            shadowBlur: 10
                                        },
                                        itemStyle: {
                                            normal: {
                                                borderWidth: 0.8,
                                                lineStyle: {
                                                    type: 'solid',

                                                    color: 'green'
                                                },
                                                label: {
                                                    textStyle: {
                                                        color: 'green'
                                                    }
                                                }
                                            }
                                        },
                                        data: _importLineDatas
                                    }
                                },
                                {
                                    name: 'export',
                                    type: 'map',
//                                    roam: true,
                                    mapType: 'world',
                                    hoverable: false,
                                    clickable: false,
                                    itemStyle: {
                                        normal: {
                                            borderColor: '#FFFFFF',
                                            borderWidth: 0.5,
                                            areaStyle: {
                                                color: '#d2d6de'
                                            }
                                        },
                                        emphasis: {                 // 也是选中样式
                                            borderWidth: 2,
                                            borderColor: '#fff',
                                            color: '#999999',
                                            label: {
                                                show: true,
                                                textStyle: {
                                                    color: '#fff'
                                                }
                                            }
                                        }
                                    },
                                    data: [],
                                    geoCoord: {
                                        'Afghanistan': [67.709953, 33.93911],
                                        'Angola': [17.873887, -11.202692],
                                        'Albania': [20.168331, 41.153332],
                                        'United Arab Emirates': [53.847818, 23.424076],
                                        'Argentina': [-63.61667199999999, -38.416097],
                                        'Armenia': [45.038189, 40.069099],
                                        'French Southern and Antarctic Lands': [69.348557, -49.280366],
                                        'Australia': [133.775136, -25.274398],
                                        'Austria': [14.550072, 47.516231],
                                        'Azerbaijan': [47.576927, 40.143105],
                                        'Burundi': [29.918886, -3.373056],
                                        'Belgium': [4.469936, 50.503887],
                                        'Benin': [2.315834, 9.30769],
                                        'Burkina Faso': [-1.561593, 12.238333],
                                        'Bangladesh': [90.356331, 23.684994],
                                        'Bulgaria': [25.48583, 42.733883],
                                        'The Bahamas': [-77.39627999999999, 25.03428],
                                        'Bosnia and Herzegovina': [17.679076, 43.915886],
                                        'Belarus': [27.953389, 53.709807],
                                        'Belize': [-88.49765, 17.189877],
                                        'Bermuda': [-64.7505, 32.3078],
                                        'Bolivia': [-63.58865299999999, -16.290154],
                                        'Brazil': [-51.92528, -14.235004],
                                        'Brunei': [114.727669, 4.535277],
                                        'Bhutan': [90.433601, 27.514162],
                                        'Botswana': [24.684866, -22.328474],
                                        'Central African Republic': [20.939444, 6.611110999999999],
                                        'Canada': [-106.346771, 56.130366],
                                        'Switzerland': [8.227511999999999, 46.818188],
                                        'Chile': [-71.542969, -35.675147],
                                        'China': [104.195397, 35.86166],
                                        'Ivory Coast': [-5.547079999999999, 7.539988999999999],
                                        'Cameroon': [12.354722, 7.369721999999999],
                                        'Democratic Republic of the Congo': [21.758664, -4.038333],
                                        'Republic of the Congo': [15.827659, -0.228021],
                                        'Colombia': [-74.297333, 4.570868],
                                        'Costa Rica': [-83.753428, 9.748916999999999],
                                        'Cuba': [-77.781167, 21.521757],
                                        'Northern Cyprus': [33.429859, 35.126413],
                                        'Cyprus': [33.429859, 35.126413],
                                        'Czech Republic': [15.472962, 49.81749199999999],
                                        'Germany': [10.451526, 51.165691],
                                        'Djibouti': [42.590275, 11.825138],
                                        'Denmark': [9.501785, 56.26392],
                                        'Dominican Republic': [-70.162651, 18.735693],
                                        'Algeria': [1.659626, 28.033886],
                                        'Ecuador': [-78.18340599999999, -1.831239],
                                        'Egypt': [30.802498, 26.820553],
                                        'Eritrea': [39.782334, 15.179384],
                                        'Spain': [-3.74922, 40.46366700000001],
                                        'Estonia': [25.013607, 58.595272],
                                        'Ethiopia': [40.489673, 9.145000000000001],
                                        'Finland': [25.748151, 61.92410999999999],
                                        'Fiji': [178.065032, -17.713371],
                                        'Falkland Islands': [-59.523613, -51.796253],
                                        'France': [2.213749, 46.227638],
                                        'Gabon': [11.609444, -0.803689],
                                        'United Kingdom': [-3.435973, 55.378051],
                                        'Georgia': [-82.9000751, 32.1656221],
                                        'Ghana': [-1.023194, 7.946527],
                                        'Guinea': [-9.696645, 9.945587],
                                        'Gambia': [-15.310139, 13.443182],
                                        'Guinea Bissau': [-15.180413, 11.803749],
                                        'Equatorial Guinea': [10.267895, 1.650801],
                                        'Greece': [21.824312, 39.074208],
                                        'Greenland': [-42.604303, 71.706936],
                                        'Guatemala': [-90.23075899999999, 15.783471],
                                        'French Guiana': [-53.125782, 3.933889],
                                        'Guyana': [-58.93018, 4.860416],
                                        'Honduras': [-86.241905, 15.199999],
                                        'Croatia': [15.2, 45.1],
                                        'Haiti': [-72.285215, 18.971187],
                                        'Hungary': [19.503304, 47.162494],
                                        'Indonesia': [113.921327, -0.789275],
                                        'India': [78.96288, 20.593684],
                                        'Ireland': [-8.24389, 53.41291],
                                        'Iran': [53.688046, 32.427908],
                                        'Iraq': [43.679291, 33.223191],
                                        'Iceland': [-19.020835, 64.963051],
                                        'Israel': [34.851612, 31.046051],
                                        'Italy': [12.56738, 41.87194],
                                        'Jamaica': [-77.297508, 18.109581],
                                        'Jordan': [36.238414, 30.585164],
                                        'Japan': [138.252924, 36.204824],
                                        'Kazakhstan': [66.923684, 48.019573],
                                        'Kenya': [37.906193, -0.023559],
                                        'Kyrgyzstan': [74.766098, 41.20438],
                                        'Cambodia': [104.990963, 12.565679],
                                        'South Korea': [127.766922, 35.907757],
                                        'Kosovo': [20.902977, 42.6026359],
                                        'Kuwait': [47.481766, 29.31166],
                                        'Laos': [102.495496, 19.85627],
                                        'Lebanon': [35.862285, 33.854721],
                                        'Liberia': [-9.429499000000002, 6.428055],
                                        'Libya': [17.228331, 26.3351],
                                        'Sri Lanka': [80.77179699999999, 7.873053999999999],
                                        'Lesotho': [28.233608, -29.609988],
                                        'Lithuania': [23.881275, 55.169438],
                                        'Luxembourg': [6.129582999999999, 49.815273],
                                        'Latvia': [24.603189, 56.879635],
                                        'Morocco': [-7.092619999999999, 31.791702],
                                        'Moldova': [28.369885, 47.411631],
                                        'Madagascar': [46.869107, -18.766947],
                                        'Mexico': [-102.552784, 23.634501],
                                        'Macedonia': [21.745275, 41.608635],
                                        'Mali': [-3.996166, 17.570692],
                                        'Myanmar': [95.956223, 21.913965],
                                        'Montenegro': [19.37439, 42.708678],
                                        'Mongolia': [103.846656, 46.862496],
                                        'Mozambique': [35.529562, -18.665695],
                                        'Mauritania': [-10.940835, 21.00789],
                                        'Malawi': [34.301525, -13.254308],
                                        'Malaysia': [101.975766, 4.210484],
                                        'Namibia': [18.49041, -22.95764],
                                        'New Caledonia': [165.618042, -20.904305],
                                        'Niger': [8.081666, 17.607789],
                                        'Nigeria': [8.675277, 9.081999],
                                        'Nicaragua': [-85.207229, 12.865416],
                                        'Netherlands': [5.291265999999999, 52.132633],
                                        'Norway': [8.468945999999999, 60.47202399999999],
                                        'Nepal': [84.12400799999999, 28.394857],
                                        'New Zealand': [174.885971, -40.900557],
                                        'Oman': [55.923255, 21.512583],
                                        'Pakistan': [69.34511599999999, 30.375321],
                                        'Panama': [-80.782127, 8.537981],
                                        'Peru': [-75.015152, -9.189967],
                                        'Philippines': [121.774017, 12.879721],
                                        'Papua New Guinea': [143.95555, -6.314992999999999],
                                        'Poland': [19.145136, 51.919438],
                                        'Puerto Rico': [-66.590149, 18.220833],
                                        'North Korea': [127.510093, 40.339852],
                                        'Portugal': [-8.224454, 39.39987199999999],
                                        'Paraguay': [-58.443832, -23.442503],
                                        'Qatar': [51.183884, 25.354826],
                                        'Romania': [24.96676, 45.943161],
                                        'Russia': [105.318756, 61.52401],
                                        'Rwanda': [29.873888, -1.940278],
                                        'Western Sahara': [-12.885834, 24.215527],
                                        'Saudi Arabia': [45.079162, 23.885942],
                                        'Sudan': [30.217636, 12.862807],
                                        'South Sudan': [31.3069788, 6.876991899999999],
                                        'Senegal': [-14.452362, 14.497401],
                                        'Solomon Islands': [160.156194, -9.64571],
                                        'Sierra Leone': [-11.779889, 8.460555],
                                        'El Salvador': [-88.89653, 13.794185],
                                        'Somaliland': [46.8252838, 9.411743399999999],
                                        'Somalia': [46.199616, 5.152149],
                                        'Republic of Serbia': [21.005859, 44.016521],
                                        'Suriname': [-56.027783, 3.919305],
                                        'Slovakia': [19.699024, 48.669026],
                                        'Slovenia': [14.995463, 46.151241],
                                        'Sweden': [18.643501, 60.12816100000001],
                                        'Swaziland': [31.465866, -26.522503],
                                        'Syria': [38.996815, 34.80207499999999],
                                        'Chad': [18.732207, 15.454166],
                                        'Togo': [0.824782, 8.619543],
                                        'Thailand': [100.992541, 15.870032],
                                        'Tajikistan': [71.276093, 38.861034],
                                        'Turkmenistan': [59.556278, 38.969719],
                                        'East Timor': [125.727539, -8.874217],
                                        'Trinidad and Tobago': [-61.222503, 10.691803],
                                        'Tunisia': [9.537499, 33.886917],
                                        'Turkey': [35.243322, 38.963745],
                                        'United Republic of Tanzania': [34.888822, -6.369028],
                                        'Uganda': [32.290275, 1.373333],
                                        'Ukraine': [31.16558, 48.379433],
                                        'Uruguay': [-55.765835, -32.522779],
                                        'United States of America': [-95.712891, 37.09024],
                                        'Uzbekistan': [64.585262, 41.377491],
                                        'Venezuela': [-66.58973, 6.42375],
                                        'Vietnam': [108.277199, 14.058324],
                                        'Vanuatu': [166.959158, -15.376706],
                                        'West Bank': [35.3027226, 31.9465703],
                                        'Yemen': [48.516388, 15.552727],
                                        'South Africa': [22.937506, -30.559482],
                                        'Zambia': [27.849332, -13.133897],
                                        'Zimbabwe': [29.154857, -19.015438],
                                        '阿富汗': [67.709953, 33.93911],
                                        '安哥拉': [17.873887, -11.202692],
                                        '阿尔巴尼亚': [20.168331, 41.153332],
                                        '阿联酋': [53.847818, 23.424076],
                                        '阿根廷': [-63.61667199999999, -38.416097],
                                        '亚美尼亚': [45.038189, 40.069099],
                                        '法属南半球和南极领地': [69.348557, -49.280366],
                                        '澳大利亚': [133.775136, -25.274398],
                                        '奥地利': [14.550072, 47.516231],
                                        '阿塞拜疆': [47.576927, 40.143105],
                                        '布隆迪': [29.918886, -3.373056],
                                        '比利时': [4.469936, 50.503887],
                                        '贝宁': [2.315834, 9.30769],
                                        '布基纳法索': [-1.561593, 12.238333],
                                        '孟加拉国': [90.356331, 23.684994],
                                        '保加利亚': [25.48583, 42.733883],
                                        '巴哈马': [-77.39627999999999, 25.03428],
                                        '波斯尼亚和黑塞哥维那': [17.679076, 43.915886],
                                        '白俄罗斯': [27.953389, 53.709807],
                                        '伯利兹': [-88.49765, 17.189877],
                                        '百慕大': [-64.7505, 32.3078],
                                        '玻利维亚': [-63.58865299999999, -16.290154],
                                        '巴西': [-51.92528, -14.235004],
                                        '文莱': [114.727669, 4.535277],
                                        '不丹': [90.433601, 27.514162],
                                        '博茨瓦纳': [24.684866, -22.328474],
                                        '中非共和国': [20.939444, 6.611110999999999],
                                        '加拿大': [-106.346771, 56.130366],
                                        '瑞士': [8.227511999999999, 46.818188],
                                        '智利': [-71.542969, -35.675147],
                                        '中国': [104.195397, 35.86166],
                                        '象牙海岸': [-5.547079999999999, 7.539988999999999],
                                        '喀麦隆': [12.354722, 7.369721999999999],
                                        '刚果民主共和国': [21.758664, -4.038333],
                                        '刚果共和国': [15.827659, -0.228021],
                                        '哥伦比亚': [-74.297333, 4.570868],
                                        '哥斯达黎加': [-83.753428, 9.748916999999999],
                                        '古巴': [-77.781167, 21.521757],
                                        '北塞浦路斯': [33.429859, 35.126413],
                                        '塞浦路斯': [33.429859, 35.126413],
                                        '捷克共和国': [15.472962, 49.81749199999999],
                                        '德国': [10.451526, 51.165691],
                                        '吉布提': [42.590275, 11.825138],
                                        '丹麦': [9.501785, 56.26392],
                                        '多明尼加共和国': [-70.162651, 18.735693],
                                        '阿尔及利亚': [1.659626, 28.033886],
                                        '厄瓜多尔': [-78.18340599999999, -1.831239],
                                        '埃及': [30.802498, 26.820553],
                                        '厄立特里亚': [39.782334, 15.179384],
                                        '西班牙': [-3.74922, 40.46366700000001],
                                        '爱沙尼亚': [25.013607, 58.595272],
                                        '埃塞俄比亚': [40.489673, 9.145000000000001],
                                        '芬兰': [25.748151, 61.92410999999999],
                                        '斐': [178.065032, -17.713371],
                                        '福克兰群岛': [-59.523613, -51.796253],
                                        '法国': [2.213749, 46.227638],
                                        '加蓬': [11.609444, -0.803689],
                                        '英国': [-3.435973, 55.378051],
                                        '格鲁吉亚': [-82.9000751, 32.1656221],
                                        '加纳': [-1.023194, 7.946527],
                                        '几内亚': [-9.696645, 9.945587],
                                        '冈比亚': [-15.310139, 13.443182],
                                        '几内亚比绍': [-15.180413, 11.803749],
                                        '赤道几内亚': [10.267895, 1.650801],
                                        '希腊': [21.824312, 39.074208],
                                        '格陵兰': [-42.604303, 71.706936],
                                        '危地马拉': [-90.23075899999999, 15.783471],
                                        '法属圭亚那': [-53.125782, 3.933889],
                                        '圭亚那': [-58.93018, 4.860416],
                                        '洪都拉斯': [-86.241905, 15.199999],
                                        '克罗地亚': [15.2, 45.1],
                                        '海地': [-72.285215, 18.971187],
                                        '匈牙利': [19.503304, 47.162494],
                                        '印度尼西亚': [113.921327, -0.789275],
                                        '印度': [78.96288, 20.593684],
                                        '爱尔兰': [-8.24389, 53.41291],
                                        '伊朗': [53.688046, 32.427908],
                                        '伊拉克': [43.679291, 33.223191],
                                        '冰岛': [-19.020835, 64.963051],
                                        '以色列': [34.851612, 31.046051],
                                        '意大利': [12.56738, 41.87194],
                                        '牙买加': [-77.297508, 18.109581],
                                        '约旦': [36.238414, 30.585164],
                                        '日本': [138.252924, 36.204824],
                                        '哈萨克斯坦': [66.923684, 48.019573],
                                        '肯尼亚': [37.906193, -0.023559],
                                        '吉尔吉斯斯坦': [74.766098, 41.20438],
                                        '柬埔寨': [104.990963, 12.565679],
                                        '韩国': [127.766922, 35.907757],
                                        '科索沃': [20.902977, 42.6026359],
                                        '科威特': [47.481766, 29.31166],
                                        '老挝': [102.495496, 19.85627],
                                        '黎巴嫩': [35.862285, 33.854721],
                                        '利比里亚': [-9.429499000000002, 6.428055],
                                        '利比亚': [17.228331, 26.3351],
                                        '斯里兰卡': [80.77179699999999, 7.873053999999999],
                                        '莱索托': [28.233608, -29.609988],
                                        '立陶宛': [23.881275, 55.169438],
                                        '卢森堡': [6.129582999999999, 49.815273],
                                        '拉脱维亚': [24.603189, 56.879635],
                                        '摩洛哥': [-7.092619999999999, 31.791702],
                                        '摩尔多瓦': [28.369885, 47.411631],
                                        '马达加斯加': [46.869107, -18.766947],
                                        '墨西哥': [-102.552784, 23.634501],
                                        '马其顿': [21.745275, 41.608635],
                                        '马里': [-3.996166, 17.570692],
                                        '缅甸': [95.956223, 21.913965],
                                        '黑山': [19.37439, 42.708678],
                                        '蒙古': [103.846656, 46.862496],
                                        '莫桑比克': [35.529562, -18.665695],
                                        '毛里塔尼亚': [-10.940835, 21.00789],
                                        '马拉维': [34.301525, -13.254308],
                                        '马来西亚': [101.975766, 4.210484],
                                        '纳米比亚': [18.49041, -22.95764],
                                        '新喀里多尼亚': [165.618042, -20.904305],
                                        '尼日尔': [8.081666, 17.607789],
                                        '尼日利亚': [8.675277, 9.081999],
                                        '尼加拉瓜': [-85.207229, 12.865416],
                                        '荷兰': [5.291265999999999, 52.132633],
                                        '挪威': [8.468945999999999, 60.47202399999999],
                                        '尼泊尔': [84.12400799999999, 28.394857],
                                        '新西兰': [174.885971, -40.900557],
                                        '阿曼': [55.923255, 21.512583],
                                        '巴基斯坦': [69.34511599999999, 30.375321],
                                        '巴拿马': [-80.782127, 8.537981],
                                        '秘鲁': [-75.015152, -9.189967],
                                        '菲律宾': [121.774017, 12.879721],
                                        '巴布亚新几内亚': [143.95555, -6.314992999999999],
                                        '波兰': [19.145136, 51.919438],
                                        '波多黎各': [-66.590149, 18.220833],
                                        '北朝鲜': [127.510093, 40.339852],
                                        '葡萄牙': [-8.224454, 39.39987199999999],
                                        '巴拉圭': [-58.443832, -23.442503],
                                        '卡塔尔': [51.183884, 25.354826],
                                        '罗马尼亚': [24.96676, 45.943161],
                                        '俄罗斯': [105.318756, 61.52401],
                                        '卢旺达': [29.873888, -1.940278],
                                        '西撒哈拉': [-12.885834, 24.215527],
                                        '沙特阿拉伯': [45.079162, 23.885942],
                                        '苏丹': [30.217636, 12.862807],
                                        '南苏丹': [31.3069788, 6.876991899999999],
                                        '塞内加尔': [-14.452362, 14.497401],
                                        '所罗门群岛': [160.156194, -9.64571],
                                        '塞拉利昂': [-11.779889, 8.460555],
                                        '萨尔瓦多': [-88.89653, 13.794185],
                                        '索马里兰': [46.8252838, 9.411743399999999],
                                        '索马里': [46.199616, 5.152149],
                                        '塞尔维亚共和国': [21.005859, 44.016521],
                                        '苏里南': [-56.027783, 3.919305],
                                        '斯洛伐克': [19.699024, 48.669026],
                                        '斯洛文尼亚': [14.995463, 46.151241],
                                        '瑞典': [18.643501, 60.12816100000001],
                                        '斯威士兰': [31.465866, -26.522503],
                                        '叙利亚': [38.996815, 34.80207499999999],
                                        '乍得': [18.732207, 15.454166],
                                        '多哥': [0.824782, 8.619543],
                                        '泰国': [100.992541, 15.870032],
                                        '塔吉克斯坦': [71.276093, 38.861034],
                                        '土库曼斯坦': [59.556278, 38.969719],
                                        '东帝汶': [125.727539, -8.874217],
                                        '特里尼达和多巴哥': [-61.222503, 10.691803],
                                        '突尼斯': [9.537499, 33.886917],
                                        '土耳其': [35.243322, 38.963745],
                                        '坦桑尼亚联合共和国': [34.888822, -6.369028],
                                        '乌干达': [32.290275, 1.373333],
                                        '乌克兰': [31.16558, 48.379433],
                                        '乌拉圭': [-55.765835, -32.522779],
                                        '美国': [-95.712891, 37.09024],
                                        '乌兹别克斯坦': [64.585262, 41.377491],
                                        '委内瑞拉': [-66.58973, 6.42375],
                                        '越南': [108.277199, 14.058324],
                                        '瓦努阿图': [166.959158, -15.376706],
                                        '西岸': [35.3027226, 31.9465703],
                                        '也门': [48.516388, 15.552727],
                                        '南非': [22.937506, -30.559482],
                                        '赞比亚': [27.849332, -13.133897],
                                        '津巴布韦': [29.154857, -19.015438],
                                        'China': [117.00, 36.40]
                                    },
                                    markLine: {
                                        smooth: true,
                                        effect: {
                                            show: true,
                                            scaleSize: 2,
                                            color: '#FF9797',
                                            shadowBlur: 10
                                        },
                                        itemStyle: {
                                            normal: {
                                                borderWidth: 0.8,
                                                lineStyle: {
                                                    type: 'solid',
                                                    shadowBlur: 10,
                                                    color: 'red'
                                                },
                                                label: {
                                                    textStyle: {
                                                        color: 'red'
                                                    }
                                                    ,
                                                    label: {
                                                        show: true,
                                                        textStyle: {
                                                            color: '#999999'
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        data: _exportLineDatas
                                    }
                                }
                            ]
                        };
                        /**
                         var ecConfig = require('echarts/config');
                         myChart.on(ecConfig.EVENT.CLICK, function(param) {
                            if (param.data && param.data.importUrl)
                            {
                                layer.open({
                                    type: 2,
                                    title: "跨境电商近一月进口订单",
                                    area: ['700px', '500px'],
                                    offset: ['100px', '200px'],
                                    content: [param.data.importUrl]
                                });

                                return;
                            }

                            if (param.data && param.data.exportUrl)
                            {
                                layer.open({
                                    type: 2,
                                    title: "跨境电商近一月出口订单",
                                    area: ['700px', '500px'],
                                    offset: ['100px', '200px'],
                                    content: [param.data.exportUrl]
                                });
                            }
                        });*/

                        myChart.setOption(option);

                    }
            );
        }


    </script>
</head>
<body>
<div class="content content_frame">
    <h3 class="mainTitle">
        <table width="100%">
            <tr>
                <td width="50%" style="font-size:22px; color:#418dd9;"><img src="${basePath}/images/icon2.png"/>Dashboard
                </td>
                <td width="50%" align="right">
                    <div style="font-size: 16px;color: #333">
                        <input type="text" name="refreshTime" value="30"
                               style="width: 30px;height: 30px;line-height:30px;text-align: center"/>
                        <span style="margin: auto;height: 30px;line-height:35px;">秒</span>
                        <button class="btn btn-primary btn-small" id="btnSave" onclick="setRefreshTimes()"
                                style="height: 30px;">
                            <i class="icon-save"></i>设置
                        </button>
                    </div>
                </td>
            </tr>
        </table>
    </h3>

    <br/>

    <div style="text-align: center">
        <div id="totalImportExport" style="height:800px;width:95%;margin: 0 auto"></div>
    </div>
    <div class="content content_frame" style="padding-left: 0px !important;">
        <h3 class="mainTitle"></h3>
        <br/>
        <div class="figBox figBox2 fl">
            <h3 class="figTitle"><img src="${basePath}/images/table.png"/>近12个月内企业备案量趋势图
            </h3>
            <div class="figContent" id="chartA" style="height:500px;padding:2px;width: 100%"></div>
        </div>
        <div class="figBox figBox2 fr">
            <h3 class="figTitle"><img src="${basePath}/images/table.png"/>近12个月内商品备案量趋势图
            </h3>
            <div class="figContent" id="chartD" style="height:500px;padding:2px;width: 100%"></div>
        </div>
        <div class="fl" style="width: 100%;height:30px;">&nbsp;</div>
        <div class="figBox figBox2 fl">
            <h3 class="figTitle"><img src="${basePath}/images/figure.png"/>企业订单申报量TOP10统计图
            </h3>
            <div class="figContent" id="chartB" style="height:500px;padding:2px;width: 100%">
            </div>
        </div>
        <div class="figBox figBox2 fr">
            <h3 class="figTitle"><img src="${basePath}/images/table.png"/>企业订单申报金额TOP10统计图
            </h3>
            <div class="figContent" id="chartC" style="height:500px;padding:2px;width: 100%"></div>
        </div>
        <div class="cl"></div>
        <br/>
    </div>
</div>
<script type="text/javascript">
    function refreshChartE() {
        $.post("${basePath}/reportStat/qryEntStsChartE", function (data) {
            var xdata = new Array();
            var arr1 = new Array();
            for (var i = 0; i < data['PL'].length; i++) {
                arr1[i] = data['PL'][i].value;
                xdata[i] = data['PL'][i].name;
            }
            var arr2 = new Array();
            for (var i = 0; i < data['CBE'].length; i++) {
                arr2[i] = data['CBE'][i].value;
            }
            var arr3 = new Array();
            for (var i = 0; i < data['LST'].length; i++) {
                arr3[i] = data['LST'][i].value;
            }
            var arr4 = new Array();
            for (var i = 0; i < data['FOREIGN_LST'].length; i++) {
                arr4[i] = data['FOREIGN_LST'][i].value;
            }
            var arr5 = new Array();
            for (var i = 0; i < data['PAY'].length; i++) {
                arr4[i] = data['PAY'][i].value;
            }
            var arr6 = new Array();
            for (var i = 0; i < data['STORE'].length; i++) {
                arr4[i] = data['STORE'][i].value;
            }
            var arr7 = new Array();
            for (var i = 0; i < data['AGENT'].length; i++) {
                arr4[i] = data['AGENT'][i].value;
            }
            var arr8 = new Array();
            for (var i = 0; i < data['INSP'].length; i++) {
                arr4[i] = data['INSP'][i].value;
            }
            var arr9 = new Array();
            for (var i = 0; i < data['CUST'].length; i++) {
                arr4[i] = data['CUST'][i].value;
            }

            option_tendency = {
                title: {
                    text: '', x: 'center'
                }, tooltip: {
                    trigger: 'item'
                }, legend: {
                    orient: 'horizontal',
                    y: 'bottom',
                    data: ['电商平台', '电商企业', '国内物流', '国际物流', '支付企业', '仓储企业', '外贸代理企业', '报检企业', '报关企业']
                }, toolbox: {
                    show: true, feature: {
                        mark: {show: false},
                        dataView: {show: false, readOnly: false},
                        magicType: {show: false, type: ['line', 'bar', 'stack', 'tiled']},
                        restore: {show: false},
                        saveAsImage: {show: false}
                    }
                }, calculable: true, xAxis: [{
                    type: 'category', boundaryGap: false, data: xdata.reverse()
                }], yAxis: [{
                    type: 'value'
                }], grid: {x: 40, x2: 20, y2: 100}, series: [{
                    name: '电商平台', type: 'line', data: arr1.reverse()
                }, {
                    name: '电商企业', type: 'line', data: arr2.reverse()
                }, {
                    name: '国内物流', type: 'line', data: arr3.reverse()
                }, {
                    name: '国际物流', type: 'line', data: arr4.reverse()
                }, {
                    name: '支付企业', type: 'line', data: arr5.reverse()
                }, {
                    name: '仓储企业', type: 'line', data: arr6.reverse()
                }, {
                    name: '外贸代理企业', type: 'line', data: arr7.reverse()
                }, {
                    name: '报检企业', type: 'line', data: arr8.reverse()
                }, {
                    name: '报关企业', type: 'line', data: arr9.reverse()
                }]
            };
            require.config({
                paths: {
                    echarts: '${basePath}/plugins/echarts'
                }
            });
            require(['echarts', 'echarts/chart/bar', 'echarts/theme/blue', 'echarts/chart/line'], function (ec) {
                var myChart = ec.init(document.getElementById('chartA'));
                myChart.setOption(option_tendency);
            });
        });
    }
</script>
<script>
    function refreshChartB() {
        $.post("${basePath}/reportStat/qryEntStsChartB", function (data) {
            var dataArr1 = new Array();
            var dataArr2 = new Array();
            for (var i = 0; i < data.length; i++) {
                var otherValue = 0;
                if (i < 10) {
                    dataArr1[i] = data[i].name;
                    dataArr2[i] = {name: data[i].name, value: data[i].value};
                } else {
                    otherValue += data[i].value;
                }
                if ((i == (data.length - 1)) && otherValue > 0) {
                    dataArr1[10] = "其他";
                    dataArr2[10] = {name: "其他", value: otherValue};
                }
            }
            optionChartB = {
                title: {
                    text: '', x: 'center'
                }, tooltip: {
                    trigger: 'item', formatter: "{b} <br/>{a} : {c} ({d}%)"
                }, legend: {
                    orient: 'vertical', x: 'left', data: dataArr1
                }, calculable: true, series: [{
                    name: '数量', type: 'pie', radius: '55%', center: ['50%', '60%'], data: dataArr2
                }]
            };

            require.config({
                paths: {
                    echarts: '${basePath}/plugins/echarts'
                }
            });
            require(['echarts', 'echarts/chart/pie', 'echarts/theme/macarons'], function (ec) {
                var myChart = ec.init(document.getElementById('chartB'));
                myChart.setOption(optionChartB);
            });
        });
    }
</script>
<script>
    function refreshChartC() {
        $.post("${basePath}/reportStat/qryEntStsChartC", function (data) {
            var dataArr1 = new Array();
            var dataArr2 = new Array();
            var otherValue = 0;
            for (var i = 0; i < data.length; i++) {
                if (i < 10) {
                    dataArr1[i] = data[i].name;
                    dataArr2[i] = data[i].value;
                } else {
                    otherValue += data[i].value;
                }
                if ((i == (data.length - 1)) && otherValue > 0) {
                    dataArr1[10] = "其他";
                    dataArr2[10] = otherValue;
                }
            }
            optionChartC = {
                title: {
                    text: '', x: 'center'
                }, tooltip: {
                    trigger: 'axis'
                }, toolbox: {
                    show: false, feature: {
                        mark: {show: true},
                        dataView: {show: true, readOnly: false},
                        magicType: {show: true, type: ['line', 'bar']},
                        restore: {show: true},
                        saveAsImage: {show: true}
                    }
                }, calculable: true, xAxis: [{
                    type: 'value', boundaryGap: [0, 0.01]
                }], yAxis: [{
                    type: 'category', data: dataArr1.reverse()
                }], series: [{
                    name: '金额', type: 'bar', itemStyle: {
                        normal: {
                            color: function (params) {
                                var colorList = ['#C1232B', '#B5C334', '#FCCE10', '#E87C25', '#27727B', '#FE8463', '#9BCA63', '#FAD860', '#F3A43B', '#60C0DD', '#D7504B', '#C6E579', '#F4E001', '#F0805A', '#26C0C0'];
                                return colorList[params.dataIndex]
                            }
                        }
                    }, data: dataArr2.reverse()
                }]
            };
            require.config({
                paths: {
                    echarts: '${basePath}/plugins/echarts'
                }
            });
            require(['echarts', 'echarts/chart/bar', 'echarts/theme/macarons'], function (ec) {
                var myChart = ec.init(document.getElementById('chartC'));
                myChart.setOption(optionChartC);
            });
        });
    }
</script>
<script>
    function refreshChartD() {
        $.post("${basePath}/reportStat/qryEntStsChartD", function (data) {
            var xdata = new Array();
            var arr1 = new Array();
            for (var i = 0; i < data.length; i++) {
                arr1[i] = data[i].value;
                xdata[i] = data[i].name;
            }

            optionD = {
                title: {
                    text: '', x: 'center'
                }, tooltip: {
                    trigger: 'item'
                }, toolbox: {
                    show: true, feature: {
                        mark: {show: false},
                        dataView: {show: false, readOnly: false},
                        magicType: {show: false, type: ['line', 'bar', 'stack', 'tiled']},
                        restore: {show: false},
                        saveAsImage: {show: false}
                    }
                }, calculable: true, xAxis: [{
                    type: 'category', boundaryGap: false, data: xdata.reverse()
                }],
                yAxis: [{
                    type: 'value'
                }],
                grid: {x: 40, x2: 20, y2: 100},
                series: [{
                    name: '备案量', type: 'line', data: arr1.reverse()
                }]
            };
            require.config({
                paths: {
                    echarts: '${basePath}/plugins/echarts'
                }
            });
            require(['echarts', 'echarts/chart/bar', 'echarts/theme/blue', 'echarts/chart/line'], function (ec) {
                var myChart = ec.init(document.getElementById('chartD'));
                myChart.setOption(optionD);
            });
        });
    }
</script>
</body>
</html>
